<template>
	<view class="all">
		<!-- 轮播图 -->
		<view class="banner">
			<swiper class="kuan" :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000" circular="true">
				<swiper-item v-for="(val,index) in applyData[0].values" :key='val.id' >
					<!-- @tap="$open('./downLoad?mysrc='+val.url)" -->
					<view class="swiper-item">
						<image class="imas" :src="val.imageurl" ></image>
					</view>
				</swiper-item>
			</swiper>
		</view>
		<view v-for="(val,index) in applyData" :key='index' v-if="index!=0">
			<!-- 热门推荐 -->
			<view class="hot">{{val.name}}</view>
			<!-- 公共样式 -->
			<!-- @tap="$open('./downLoad?mysrc='+item.url)" -->
			<view class="common">
				<view class="tupian center colum" v-for="item in val.values" :key='item.id' @t
				ap="$sToast('敬请关注')">
					<image :src="item.imageurl" mode=""></image>
					<view class="tu_text tCenter">{{item.name}}</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				applyData:{}
			}
		},
		created() {
			this.biAppList()
		},
		methods: {
		
		
			biAppList(){
				this.$ajax('bi/biAppList',{},"POST").then(res => {
					this.applyData=res.data
				});
			}
		}
	}
</script>

<style lang="less">
	page {
		background: #0E1B45;
	}
	.all {
		background: #0E1B45;
		min-height: 100%;
		color: #fff;
	}
	.banner {
			background: #0E1B45 !important;
			width: 100%;
			box-sizing: border-box;
	}
	.kuan {
		background: #0E1B45;
		width: 100%;
		box-sizing: border-box;
	}
	.swiper-item {
		background: #0E1B45;
		width: 100%;
		height: 100%;
		box-sizing: border-box;
	}
	.imas {
		width: 100%;
		height: 100%;
		box-sizing: border-box;
	}
	// 公共样式
	.common {
		display: flex;
		flex-wrap: wrap;
		background-color: #0E1B45;
		margin: 0 20rpx;
		border-radius: 16rpx;
		.tupian {
			width: 25%;
			margin: 32rpx 0;
			.tu_text{
				white-space: nowrap;
				overflow: hidden;
				text-overflow: ellipsis;
			}
			image {
				width: 106rpx;
				height: 106rpx;
				border-radius: 30rpx;
			}
		}
		.wenzi {
			margin-top: 10rpx;
			margin-bottom: 20rpx;
			display: flex;
			justify-content: space-around;
			font-size: 20rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: rgba(51, 51, 51, 1);
		}
	}
	// .banner {
	// 	text-align: center;
	// 	padding:10rpx 30rpx;
	// 	background: #FFFFFF;
	// 	image {
	// 		width:690rpx;
	// 		height:280rpx;
	// 		border-radius:12rpx;
	// 	}
	// }
	.used {
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 30rpx;
		margin: 30rpx 30rpx;
		.zuijin {
			line-height: 30rpx;
			font-size: 30rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: rgba(51, 51, 51, 1);
		}
		.more {
			display: flex;
			align-items: center;
			line-height: 30rpx;
			font-size: 26rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: rgba(2, 151, 254, 1);
		}
		image {
			width: 12rpx;
			height: 25rpx;
			margin-left: 21rpx;
		}
	}
	.hot {
		
		margin: 50rpx 0rpx 32rpx 32rpx;
		font-size:38rpx;
		font-weight:bold;
		color:#fff;
	}
	.end {
		margin-top: 30rpx;
		display: flex;
		justify-content: space-around;
		image {
			width: 320rpx;
			height: 165rpx;
		}
	}
</style>
